package 左哥算法.ch07图;

public class Edge {
    public Integer weight;
    public Node from;   //该边的入点
    public Node to;     //该边的出点

    public Edge(Integer weight, Node from, Node to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }

    public Edge(Node from, Node to) {
        this.from = from;
        this.to = to;
    }
}
